working on Python server, same way as java server