Mix python and shell script