python script working from command line (gradlew)