make edn.py python2 and python3 compatible