logging tool for python using meta-programing