Well it seems now it's working, don't know frankly why.
FWIW the error messages I see are the following:
2021-07-04 14:45:46,631: Error running WSGI application
2021-07-04 14:45:46,643: NameError: name 'sleep' is not defined
2021-07-04 14:45:46,643: File "/usr/lib/python3.6/site-packages/flask/app.py", line 2463, in call
2021-07-04 14:45:46,643: return self.wsgi_app(environ, start_response)
2021-07-04 14:45:46,643:
2021-07-04 14:45:46,643: File "/usr/lib/python3.6/site-packages/flask/app.py", line 2449, in wsgi_app
2021-07-04 14:45:46,643: response = self.handle_exception(e)
2021-07-04 14:45:46,643:
2021-07-04 14:45:46,643: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1866, in handle_exception
2021-07-04 14:45:46,644: reraise(exc_type, exc_value, tb)
2021-07-04 14:45:46,644:
2021-07-04 14:45:46,644: File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
2021-07-04 14:45:46,644: raise value
2021-07-04 14:45:46,644:
2021-07-04 14:45:46,644: File "/usr/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
2021-07-04 14:45:46,644: response = self.full_dispatch_request()
2021-07-04 14:45:46,644:
2021-07-04 14:45:46,644: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
2021-07-04 14:45:46,645: rv = self.handle_user_exception(e)
2021-07-04 14:45:46,645:
2021-07-04 14:45:46,645: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
2021-07-04 14:45:46,645: reraise(exc_type, exc_value, tb)
2021-07-04 14:45:46,645:
2021-07-04 14:45:46,645: File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
2021-07-04 14:45:46,645: raise value
2021-07-04 14:45:46,645:
2021-07-04 14:45:46,645: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
2021-07-04 14:45:46,646: rv = self.dispatch_request()
2021-07-04 14:45:46,646:
2021-07-04 14:45:46,646: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
2021-07-04 14:45:46,646: return self.view_functionsrule.endpoint
2021-07-04 14:45:46,646:
2021-07-04 14:45:46,646: File "/home/giancampo/mysite/flask_app.py", line 65, in script_page
2021-07-04 14:45:46,646: </form>
Please tell me if it's just spam and I will delete some rows above. Thanks.