Fix extracting the extents of the .text section
Make PEP8 conformant