Make matrix transpose code pep8 compliant