converted display_environ and generate_maps to python