'Open file, check magic number and read header'

def _open(self):

    head_data = self.fp.read(14)
    if (head_data[0:2] != 'BM'):
        raise SyntaxError('Not    a    BMP    file')
    offset = i32(head_data[10:14])
    self._bitmap(offset=offset)
