From Stack Over Flow

http://stackoverflow.com/questions/16315131/consuming-gae-endpoints-with-a-python-client