print -> warnings.warn
Automatic style corrections courtesy of autopep8