Tail lights are on with the headlights off

Thanks, folks. I did replace the master cylinder. I have an all drum car and it had a disc/drum cylinder, so I replaced it with the correct master cylinder. Also, although I did bleed the brakes, I was on a slight incline, so I’m quite sure there’s still air in the system.