Fix python3 in server mode