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']

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' ]
construct options from keyword arguments or .