It doesn't work for numerous reasons:
First, you apparently deleted and recreated your cgi-bin folder, which breaks the ability to run CGI on the account.
Second, you had the permissions on test.py set to 777 when they need to be 750.
Third, you translated the header values. Headers and server commands must be in English because these are machine-read values defined as part of international standards.
print("Tipo di contenuto: testo/html\n\n")
I've fixed all the issues for you and the script is now working.