py3k ready
now works under py3k