Refactor paths and imports, installable with pip