py2.6 fixes, stop using check_output and bring argparse

fixes #6