Sql Function To Find Character In Python