let's make it a bit more Python 3 compatible