makes the bmp format python 3 compatible

A bitmap file has to be opened in "rb" mode in python 3, but then b'BM' != 'BM'. Hence the parse function raises an error. This fix should do the trick. Tested with python2.7.6 and python3.4.0