Fix pretty_printing of environments

see #66