translate function server from phthon imple server to nodejs server