This should not be hard-coded.

Can you refactor this in one of the following ways (or in a similar way, if you think of something better):
- Delete this line, move everything below into a function that takes filename as an input, and then below that function add 
```python
if __name__=="__main__":
    # code to get filename from either sys.argv or raw_input
    your_function_name(filename)
```

- Delete this line, move line 32 and below into a function that takes secs as input, move lines 19-30 into a function that takes filename as input, computes secs, and then calls the other function, and then below those functions do the same thing I suggested above to get filename and call the second function.


The first approach is the bare minimum you need to make this not a hard-coded script. I think the second way is a better approach because you can re-use the first function in situations where the input isn't from a csv file.