fixes #2624 (circular imports on wsgi)

fixes #2624