Converted gps to python 2