Fix pretty_printing of environments

PR for #66