Update trafficlights.py

added duration-parameter - oh yeah
Merge pull request #1 from erazor85/master

added duration-parameter - oh yeah