Python2.7 code with the pyephem library