How To Change Log Function In Python