The above code is very C like :). You will probably be fine doing just this:
```
cur_column = fields[0].split('.')[1:]
```
Try it