This is purely speculation here. I think that a snake can build up a kind of trust with anything. They at first see us as a predator and then realize we are not and relax a but. At the same time judging by the size of their brain and comparing it to other animals with the same size brain they honestly should not have a memory of more than a few minutes... Maybe an hour at most.