Adds the logfile

the `open` call is implemented as a context manager that will help you manage file descriptors:

```python
with open('AggregationLog.csv', 'w') as f:
   do_all_that_stuff
```