Python Flask Endpoint Security