use warnings.warn for deprecations, not print()