Fixed issue where navbar doesnt close if open during transition from input screen to console screen
PEP8 code scrub, removed redundant code.
adding script for PEP8 code scrub.
few code optimizations, cleared redundant code.