Use python logging module
Replace import statements