Refactoring dependencies

Using python-yaml instead of PyYAML and adding python-mock to build_requires in setup.cfg