Updated python script to work with python3. Contained subprocess boilerplate into a function.
Merge branch 'python3_update'