use local copy of inflect instead of import, removes hg dependency