python 3 ready & eliminate spurious imports