PY3: xrange to range fixes

Also a few FONTFAMILY fixes in thumbnailctrl