add read_environment function again, but no oldstyle support and as part

of tools.utilities