def __init__(self, name, libname=None, scriptname=None, opt=None, cfg_loc=None,
                 bin_dir='bin', test_dir='test'):
        self.name = name
        pep8name = self.name.lower()
        self.libname = libname or pep8name+'lib'

        for filename in [pep8name, self.libname]:
            if not filename[0].isalpha():
                raise NameError, filename % '%s should start with alpha character'
        self.bin_dir = bin_dir
        self.scriptname = scriptname or pep8name
        self.scriptpath = """scripts=['%(bin_dir)s/%(file)s'],""" % \
            {'bin_dir':self.bin_dir,'file':self.scriptname} if \
            self.scriptname else ''

        self.test_dir = test_dir

        cfg = None
        if cfg_loc and os.path.exists(cfg_loc):
            cfg = ConfigParser.ConfigParser()
            cfg.read(cfg_loc)

        self.author = cascade_value(opt=opt, opt_name='author',
                                    cfg=cfg, cfg_section='properties', cfg_name='author',
                                    default='FILL IN')
        self.version = cascade_value(opt=opt, opt_name='version',
                                    cfg=cfg, cfg_section='properties', cfg_name='version',
                                    default='0.1')
        self.email = cascade_value(opt=opt, opt_name='email',
                                    cfg=cfg, cfg_section='properties', cfg_name='email',
                                    default='FILL IN')
dataset/ETHPy150Open mattharrison/poachplate/poachplatelib/package.py/Package.__init__/swapped operands of `%`