Also, you should always open files for reading in python with ``mode='U'``. For example:

```
f = open(path,'U')
```