Create duty.py

the main file