Asserterror when using in flask app, gevent, magic libraries | Vectle