pretty printing support for mapped code

better formatting capabilites now support Python mappings