When I saw you were using readlines to read binary file I thought wtf at first, seems like he noticed as well.