Make sure the dictionary is copied
fix bugs in new randomise layout
fix tests for new randomise layout
Add in .testr.conf for tox
Fix package imports
Fix tox configuration
fix pep8 issues