pymel.core.language.pythonToMel

pythonToMel(arg)

convert a python object to a string representing an equivalent value in mel

iterables are flattened.

mapping types like dictionaries have their key value pairs flattened:
{ key1 : val1, key2 : val2 } – > ( key1, val1, key2, val2 )