merge of #2940 polyglot/arity/55 needs fixes for Python 3.3 and 3.4