plots: cleaned up Py3-compatibility imports