Here is an example of how to use the location package to fetch the location information:
>>> import location >>> print location.gsm_location()