I did not check Python < 2.7, because you are using argparse wich has been integrated in 2.7. Do you really want to be compatible with 2.6?