Refactor Python packages

This implements fixes proposed in https://github.com/hashdist/hashstack/issues/211

We should still do an audit of our current package base for this.