Refactor Torrent _get_pieces_info method

Code is now easier to read and should be a bit faster
Flake8 rencode

Fixes a function declared twice and a few indentation issues
No need to use get_status in Torrent class