Works also on Linux+PyPy and OSX+Python 2.7