Implementing the buffer in keylog_parser.py
Changing relative paths to basenames :

dkb, keyboard_logger.py and keylog_parser.py must be in $PATH
Converting buffer to str before print
adding an empty line verification