several code clean-up:

- remove unused userlib import
- remove unused item variable
- pep8 changes

Change-Id: I73f9f2ffb81e638eed5bc920b1cb62639dca627d
Merge "several code clean-up:"