Python script for command-line csv handling