Remove unused module ConfigParser

Signed-off-by: apporc <appleorchard2000@gmail.com>
Adjust some statements

Signed-off-by: apporc <appleorchard2000@gmail.com>
Fix some pep8/pylint warning

Signed-off-by: apporc <appleorchard2000@gmail.com>