Postgresql Function Set Variable Python Print String