Fix serving in python 3