Update PresstApi.get_resource_class() add RuntimeError on bad reference
Fix issues with import using flask.ext.* in Python 3