updated python requirements
made the script compatible with python2.7