port optparse to argparse in bundlebuilder.py