maybe i should remove this
Looks like it's the proper way to define an exception: http://stackoverflow.com/a/2901111
Plus I rename "value" to "message" because I've got enough of variables called "value"
more docstrings, less pylint warnings, remove unused variables
Limit all lines to a maximum of 79 characters.
bits2bytes() disapeared