added command line functionality without explicitly using python2