I have installed on AWS Nodered with cloudfoundry. I try Now to control a python Script inside nodered.
For that i have nodejs and Python buildpacks in my manifest.yml
The Problem is that the app needs a Python script to start which needs a website over flask?
Are you saying that you have a Python script that gets information from a website or that the Python script serves a website? AFAIK, Flask is a webserver written in Python. In the same way that Node-RED uses ExpressJS which is the Node.js (JavaScript) equivalent of Flask.
Potentially you could replace your Flask website with a Node-RED one. Or you could run your Flask website on AWS in parallel to Node-RED and use Node-RED to get data from it.
That second option would seem to be a bit weird though, don't think I would recommend that.