Support slices in __setitem__ and __getitem__ for Python 3
Use bytes literal in assertion
Fix hexdump loader for Python 3
Fix duplicate tests
Fix pyflakes warning
Remove unused imports