Python Query Binary Values Example