fix header.e_machine calcuclation + some pep8 style issues