Removed index from PythonCode and updated comments.