"Finally, after weeks of steady dedication, Pi approached John and accepted a gentle pet," the shelter said in the caption.