Since the TableRef data type provides a pairs iterator you can provide two variables in your iterator to implicitly call it:
for key, val in myTableRef: ... Run
for key, val in myTableRef: ...