Reorg elements.py into a package.