fix a error requires and all pep8 violation

Change-Id: I445c66a571f9e5989671a418f62279ea778a0dc6