create Python File
Creates and writes the python code generated to a python file if input fileName is provided, otherwise creates and writes to a temporary file
Return
name of output file or the path to the temporary file
Parameters
fileName