docs: def to_api(in_dict, int_keys=None, date_keys=None, bool_keys=None):
      """Extends a given object for API Production."""
  
      # Cast all int_keys to int()
      if int_keys:
          for in_key in int_keys:
              if (in_key in in_dict) and (in_dict.get(in_key, None) is not None):
                  in_dict[in_key] = int(in_dict[in_key])
  
      # Cast all date_keys to datetime.isoformat
      if date_keys:
          for in_key in date_keys:
              if (in_key in in_dict) and (in_dict.get(in_key, None) is not None):
  
                  _from = in_dict[in_key]
  
                  if isinstance(_from, basestring):
                      dtime = parse_datetime(_from)
  
                  elif isinstance(_from, datetime):
                      dtime = _from
  
                  in_dict[in_key] = dtime.isoformat()
  
              elif (in_key in in_dict) and in_dict.get(in_key, None) is None:
                  del in_dict[in_key]
  
      # Remove all Nones
      for k, v in in_dict.items():
          if v is None:
              del in_dict[k]
  
      return in_dict