Update Python to use Row instead of deprecated dictionaries