pyflakes cleanups
classes with extra dependencies should fail on init rather than import so the docs still build