Within a package, do not `import sim`, but `from . import sim`. A general cleanup of all these imports would also be welcome.