There is a bug in pyflakes that may trigger F811 violation when import
is not used in a file before its redefinition in local class method
scope, even though it's used in other classes later in the same file.
Change-Id: Ie611e2ff93c59b01a2695c3d944cfe118f874547
Related-Bug: #1297161