Refactored enviroment manager
Improved em activate script
Implemented python-specific functions for 'em'