And now for something completely different. Py3 compatibility