this should fix the read_area by also returning a byte array.

I also applied a lot of flake8 suggestions.