Polymorphic creation OK. Basic testing done. Ready to implement.
Added mock of urllib in tests. Refactoring comments and functions.