Rewrote apf_compare part of test_lsb.py to improve performance
and to allow to run multiple instances in parallell.