Fixed mock imports for python3
Fixed errors caused by strings and unicode objects now implementing the '__iter__' method