I have created the python file. It worked after a few tweaks to erroneous syntax.