Python 3.2 compatibility is hard :-(