code: def translate_to_dbus_type(typeof, value):
      
      if ((isinstance(value, types.UnicodeType) or
           isinstance(value, str)) and typeof is not dbus.String):
          # FIXME: This is potentially dangerous since it evaluates
          # a string in-situ
          return typeof(eval(value))
      else:
          return typeof(value)
docs: Helper function to map values from their native Python types
      to Dbus types.
  
      :param type typeof: Target for type conversion e.g., 'dbus.Dictionary'
      :param value: Value to assign using type 'typeof'
      :return: 'value' converted to type 'typeof'
      :rtype: typeof