Accept file object as parameter to import_from_csv

Instead of having just a filename we now allow a file object as a parameter