Converted print statements to use () syntax instead of spaces for py3 support
Migrated from getopt to optparse