How does Python handle indexing bytes objects in assertion comparisons?