The answer came from this link this link as music2myear mentioned but the accepted answer in that link n'a pas fonctionné for me.
What a fonctionné pour moi was 2nd answer in the thread. Member user255627 points out the correct key is HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.py which requires attribute PerceivedType REG_SZ text.
J'ai créé an attribute in this key with reg command. Vous pouvez substitute .py with any extension type and enable a bunch of extensions this way. No need for a external program as mentioned in other thread.
from windows invite de commandes cmd.exe
reg add HKLM\SOFTWARE\Classes\.py /v PerceivedType /t REG_SZ /d text
Si vous ne have reg permissions to HKLM (local machine) vous pouvez utiliser HKCU (current user)
reg add HKCU\SOFTWARE\Classes\.py /v PerceivedType /t REG_SZ /d text
Vous pouvez query like this.
reg query HKLM\SOFTWARE\Classes\.py /s
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.py
(Default) REG_SZ Python.File
PerceivedType REG_SZ text
Thanks for the help guys. very useful.