def maybe_schedule(s, relative=False, app=None):
 if (s is not None):
  if isinstance(s, numbers.Number):
   s = timedelta(seconds=s)
  if isinstance(s, timedelta):
   return schedule(s, relative, app=app)
  else:
   s.app = app
 return s

def maybe_schedule ( s , relative = False , app = None ) : if ( s is not None ) : if isinstance ( s , numbers . Number ) : s = timedelta ( seconds = s ) if isinstance ( s , timedelta ) : return schedule ( s , relative , app = app ) else : s . app = app return s
return schedule from number .