now also works on python 3