Set sub_command so it isn't used unset
reformat to be pep8y
Merge pull request #1 from racker/fix_undefined_sub_command

Set sub_command so it isn't used unset