Fixes compilation on Python 2