As they get older, mine do get more used to human activity around their tank at night, and they tend to come out more in the evenings rather than after we go to bed.
And I actually have seen iguanas that know how to get attention by scratching at their screens whenever a human walks by. Typically they either want food, or to be let out. I suppose it's not impossible that really a well-socialized ball python could actually be trying to communicate that it wants something it knows you provide, but ultimately failing because we all know ball pythons aren't that smart, and it has no limbs for scratching at the screen...