Remove some unneeded imports, a constant and a line of dead code. Document the current external API interface.py provides.