You broke python3! Just use .items() and it will work everywhere.