Changed file iterator to remove bug.

The error is fixed when you iterate through the BedTool using a more Pythonic approach :)