Since combinations_with_replacements does not exist on Python 2.6 I moved the definition into the compat module.
Moved mock to the compat module as well in order to allow importing from unittest on Python 3.3.