fix csvreader failover to work with python 3