now using argparse to process arguments
Cleaned up code, formatted the output to be cleaner when viewed through jenkins/terminal.
This copy only works with python 2.7 or later due to argparse.