Timescaledb Python Execute Function