way to execute python functions in bash