Quick implementation of CSV library in python