I have almost understood what you need, You want a flask server that takes HTTP requests from android app and then sends data to raspberrypi using HTTP and/or TCP
You want this proxy server to avoid port forwarding, Although I still have some questions and I am a bit busy to take this project immidiately, but I can do it tomorrow... within one day