Fix flattening, and use of deprecated .slurp on file handle

This should fix the basic use of abctranspose