sql = """
    SELECT * FROM customers 
    WHERE CustomerId = %(customer_id)s 
        AND AccountID = %(account_id)s
        AND ExtraID = %(customer_id)s\"
"""
How do I use SQL parameters with python?