def env(*args, **kwargs):
 for arg in args:
  value = os.environ.get(arg, None)
  if value:
   return value
 return kwargs.get('default', '')

def env ( * args , ** kwargs ) : for arg in args : value = os . environ . get ( arg , None ) if value : return value return kwargs . get ( 'default' , '' )
returns the first environment variable set .