fixed  'csamtools.Fastafile' object has no attribute '__getitem__' bug