Add missing imports
[909016] Replace ArgumentParser with OptionParser
[909007] Replace print statements with python logging API
Minor logging improvement
[909007] Make log level configurable from the command line