Moved introspection functions into separate module

And changed get_classes return type from dict to list generator.

Also removed all sys.path manipulation magic (left only in alltests.py)