Fix import errors in mock.py