completed traffic light fully working simplfied c and python correct order