Fixed issue #974 Margin line length did not update at startup. Refactored pep8mod patching