Move files into lib directory and switch to relative imports.