Looks like a flashing beacon light on the cab - some roads, like BN, standardized on these. Spark arrestors like on CN switchers. Note that the number boards on the roof don't show the loco's number. These must be showing the train number, as SP and UP number boards did at one time.