Python3 support for :keywords

Signed-off-by: Gergely Nagy <algernon@balabit.hu>