modification lesson-task.py

change 'type({})' to dict