updated traffic.py to use to include a loop which controls the light sequence