Replaced inline if else for 2.4 compatibility.
Used six.b function for 2.4 compatibility.
Included qr.1 to prevent copy failure.
Added a tox.ini case for py24.
Switched to traditional if/else syntax.