This should probably use the `warnings` module.