I unplugged the fuel pump, turned the key and tried the lights. Perfect, no flickering at all. I wonder if wiring up a capacitor for the fuel pump might solve the problem. I've heard people say that you should wire a capacitor at each light but that would mean six caps for the headlights and taillights.