Fix some pep8 style guide warnings
Fix speed insertion