Added coverage config file
Improved python 3 compatibility