remove race when testing in multiple processes
PY3: use print function
PY3: fix imports