Add some comments and improve a log message
Correct an indentation error
Make setup.py create a stub file instead of explictly calling every function in argparse.