docs: def serialize(expr):
      """Serialize input expr into a parsable value.
  
      :rtype: str"""
  
      result = None
  
      if isinstance(expr, string_types):
          result = expr
  
      elif expr is not None:
          result = '=py:{0}'.format(expr)
  
      return result