flask-fool (pypi):  A Flask extension that prevents browser access to API. 
Keywords: flask|fool|flask-extensions|python|user-agent