Logic brick executing twice

I tried to Google for the answer before posting but what I found was for much older versions and using old python API was the answer.

I’m seeing that despite setting the sensor to tap it executes the Python controller script twice. I don’t want this. I have left mouse click as the sensor. I want to click and see the script execute once. I’ve fiddled with a few different settings to try to prevent it. I’m lost. Halp?

Check if the sensor is positive. It has a positive and negative pulse, and that occurs immediately when using TAP

if not sensor.positive:
    # Run this exit code

or if you’re not using module mode:

if sensor.positive:
    # Run this main code

Perfect. Thank you!