python2.7 support fixed (see #1)