Codes in python django and google appengine