Using For Loop In Dictionary Python Documentation