Changed script to work with python 2.7 insted of 3.3