py3 fixes
Merge pull request #2 from skirpichev/formal_series-v2-py3

py3 fixes