For readability, shouldn't this be: 
for level, markers in enumerate(p_levels)?