Sql Server Function Declare Variable Python