completer: fix possible crash. Close #237
test changes
Fix: Provide a Python-callable finalizer for qutepart.