clean up dirty __import__ code

only top-level imports?