Postgresql Find Substring Python String