Added -a to coverage run
Python3 compatibility fixes