Several Changes

- Moved away from threads, since they are not needed here
- Use argparse for command line options
- Added a command line option for specifying polling intervals
- Added option to output the maximum memory usage to stdout at regular
  intervals
- Added option to output run time of subprocess
- Supports python 2 and 3