I don't think I follow the stderr comment. Isn't it just:
Perl
print STDERR "foo"
Python print(file=sys.stderr, "foo")
Those look fairly similar. I prefer that print() is obviously a function call and file is a named parameter so the purpose is clear.