Pulsating Headlights

Need help from some of you electrical wizards on here. My lights pulsate with engine running regardless of engine speed, idle to whatever. Here's the kicker. When my electric fans come on the pulsating stops and lights are perfectly steady. Any ideas?