change print functions to make it compatible with Python 3
add command line parse utility and improvements in process.py