python 3 improvements