Add Python dictionary type conversions

This preserves Python dictionaries across function calls.  E.g. a
dictionary can be passed to an inner function and still be a dictionary.