ports from python to nodejs