You should still use the warnings module. That will take care of things like printing this to stderr, and only showing it once per session.