dockertest: Add unittests for networking and images

There are few new unittests and pylint/pep8 changes.

The last patch also fixes one python 2.4 compatibility issue.