Update trafficlights.py

added duration-parameter - oh yeah