Fix extracting minimum seqnum from sending window.
Fix extracting minimum seqnum from sending window.

* The fix is somewhat awkward, as to be compatible with
  Python 2 and Python 3.

Renelvon/txrudp,OpenBazaar/txrudp,jorik041/txrudp