Added Python version (>=2.6) check.
Logging support