Fixes non-module imports and enables gating on H302 in flake8 Change-Id: I366b0ca622d5185732c6c755f8724efb8bbc80f7