While reading Chapter 4 of John, one gets the impression that in the beginning of his public life, Jesus was a shy person in so far as interacting with women was concerned :
Just then his disciples came. They were astonished that he was speaking with a woman, but no one said, “What do you want?” or, “Why are you speaking with her?” - (Jn 4:27).
But later, towards the end of his public life, we see Jesus interacting with women and even allowing them to display publicly their affection and respect for him:
Six days before the Passover Jesus came to Bethany, the home of Lazarus, whom he had raised from the dead. There they gave a dinner for him. Martha served, and Lazarus was one of those at the table with him. Mary took a pound of costly perfume made of pure nard, anointed Jesus’ feet, and wiped them with her hair. - (Jn 12:1-3)
My question therefore is: Was there a paradigm shift in Jesus' interaction with women between the beginning and end of his public life? What is the Catholic Church's view-point on such a shift, and was Mother Mary instrumental in the change?