Fixed arguments parsing for the embedded python scripts