">i"should be ">L"
You can avoid going trough the whole file by reading the length of the HEAD chunk that way you know the data is over by the time you reach that chunks end. So you can skip most of the file irrespectively to how loong the file is. This avoids problems more robustly.
You should also chek that its a maya file. the 16 first shars contain that info.
cgkit seems great way, but I don't have it installed.
well if you can put in your own file then you can put in the only one python file form cgkit you need. You can just take the zzip file and copy over the one python file that contains all you need. But yes i digress the format si pretty simple.
Sincce cgkit is LGPL you can pretty much do what you need in any situation.
But yes i digress the MBReader class leaves something to be desired, so i would reengineer one myself too. In fact i have a windows shell extension wirtten in C to do this so i can list theese things just liek for other windows files.