refactor python inline scripts to helper function, support python3
no need to capture python output just to echo it
Merge pull request #20 from ploxiln/refactor_python_scripts_20

refactor python scripts with bash function