* emacs3.py: Import imp module and use it (Bug#5756).