Cleans up code as recommended by pylint

Code contained a few import and built-in redefinitions.
Also, some unused statements and variables. This
cleans them up.

Signed-off-by: Gora Khargosh <gora.khargosh@gmail.com>
3 files changed