Corrected necessary coding style errors reported by pylint. Close #46.