modified to be enabled submission of python code, and add the python code template preference