Starts to be working with Python3
Corrected logging facility
Missed some debug commands