ported to python 3.4.0
fixed warnings