[fix] indentation
[mod] tpb sort refactor
[fix] pep8