Change get_object to use importlib instead of __import__.
Added documentation and tests.