Fix PyLint
Make block_till_stopped test more flexible