Workaround for Python multiprocessing/threading bug

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>