Made changes to pythonListToList