Added Main environment class and main function

Enums are just static classes, so they can be easily implemented in py2. It's done in host.py for example. Anyways, I've modified the host code to not rely on a Measurements enum, so we'll go with your way for now.