fixing switching logic
fixing pylint warnings over null byte character literals, and pylint's unhappiness with the hashlib classes