Serialize lambda functions in a urllib2.Response objects' get_method