Removing unnecessary imports.
Use universal readline mode.
Removing obsolete print statements.