started refactoring other code to work in python 3 --HG-- branch : mung
fixed hgignore --HG-- branch : mung