python-pkg: prepare for multiple async code test cases
python-pkg: prepare for multiple async code test cases

Each async code test case should run on its own newly created loop and
the loop should be closed after each test.
The event_loop context manager can be used to ensure that.

stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc