Python logging facility initiated inside Diffractometer class