added hg-contains extension, plus some pep8
enabled hg contains extension