updated to py 3