localrequest to perform a fake http request within a flask app