Make the flask adapter working with flask.ext.restful

Change-Id: I71d875f6579799b2881f76859fa88226dfea9b2b