Runner improvements

Python 3 fixes and replaced optparse by argparse