fix typo, fix bug, add debug to mock_rpi.py