Making tangelo.log() more robust.

Closes #406