it also works in python 2