Fixed UI and Python generation bugs in the loops_read block.