Python script for performing simple csv operations