Fake pydoop implementation for testin purposes