move Memsource class into its own module to remove dependencies from __init__.py file