mocks.py: add err() to fix udp_bridge test

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>