qMake more changes to sort_and_reduce()

* Add space after comma
* Make it more pythonic
Move RelayStats.WEIGHTS out of RelayStats

There's no need for WEIGHTS to be in RelayStats.
Convert compass.py to 4-level indent
Move print_selection out of RelayStats
Move select_relays and sort_and_reduce out of RelayStats
Move download_details_file() to util.py
Make print_selection() more pythonic