Make csv_file_to_file py3 compatible

Add integration test

Remove mocked test

Make clean example py3 compatible