def build_options(gens, args=None):
    'Construct options from keyword arguments or ... options. '
    if (args is None):
        (gens, args) = ((), gens)
    if ((len(args) != 1) or ('opt' not in args) or gens):
        return Options(gens, args)
    else:
        return args['opt']
Construct options from keyword arguments or ... options.
def build_options(gens, args=None):
    ' '
    if (args is None):
        (gens, args) = ((), gens)
    if ((len(args) != 1) or ('opt' not in args) or gens):
        return Options(gens, args)
    else:
        return args['opt']