Fixed WARNING messages
Fixed some stuff to allow for python3