1import os
2os.system("cat > brightness_control_in_python.py")
3#if this error comes no worries your file is already created
4'cat' is not recognized as an internal or external command,
5operable program or batch file.
6#take a look in your folder where you make python files you will find your file
7#created there