python luigi localTarget pickle
The luigi open command doesn't work with the b flag for binary- it strips it out of the options string. (not sure why). Better to just use standard open with the path attribute:
open(self.input().path, 'rb')
and open(self.output().path, 'wb')
.