Move references to frames in client to PythonTestCase
Add logger as an argument to on_unlock in client