Make the fake authentication module Python 3-compatible