How To Write Log In Python