python3 compatibility and automatic detection of activated environment
basic tests