RESTfull API test with Python urllib + Flask