code: def stringToCharP(inobject, inlen=None):
  
      
      if inlen and isinstance(inobject, str):
          return create_string_buffer(inobject.encode(encoding='UTF-8'), inlen)
      if isinstance(inobject, bytes):
          return inobject
      if isinstance(inobject, c_int):
          return stringToCharP(" " * inobject.value)
      if isinstance(inobject, int):
          return stringToCharP(" " * inobject)
      return c_char_p(inobject.encode(encoding='UTF-8'))
docs: :param inobject: input string, int for getting null string of length of int
      :param inlen: optional parameter, length of a given string can be specified
      :return: