Definition of standard __enter__ and __exit__ methods allowing the construction 'with CamomileClient(...) as client:' This performs an automatic logout at the end even in case of exceptions.
Import forgotten time library for delay management