fix argument parsing in python 2.7.9