Cleaning up template

* works with Python 3.
* use 'module' in logging instead of LOG_MESSAGE_PREFIX
* using '|' as a separator instead of ':'
* return 0 unless an exception is thrown.