trying to get this working python 2.7