update comment header for python_cmd
tests for python_cmd, minor comment fixes