BF: python3 compatibility.