Restructure repository for easier use as Python package.