Actually the problem was dietpi 
Now I have a fresh install raspberry pi running all my nodes without dietpi
I'll update here if I can come up with a solution for google api
now I can run this without problems
[{"id":"a7d4e707.fd8a18","type":"inject","z":"d7276cd2.d6f55","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":240,"wires":[["97c92fce.dd6f6"]]},{"id":"97c92fce.dd6f6","type":"template","z":"d7276cd2.d6f55","name":"","field":"payload","fieldType":"msg","format":"python","syntax":"plain","template":"import time\n\nwhile True:\n print(time.ctime())\n time.sleep(10)\n","output":"str","x":320,"y":240,"wires":[["1273e63.74b5c1a"]]},{"id":"1273e63.74b5c1a","type":"file","z":"d7276cd2.d6f55","name":"","filename":"pythontest.py","appendNewline":false,"createDir":false,"overwriteFile":"true","encoding":"none","x":510,"y":240,"wires":[["14057906.c24237"]]},{"id":"14057906.c24237","type":"exec","z":"d7276cd2.d6f55","command":"python pythontest.py","addpay":false,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"","x":740,"y":240,"wires":[["a33c536c.9900e"],[],[]]},{"id":"a33c536c.9900e","type":"debug","z":"d7276cd2.d6f55","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":970,"y":240,"wires":[]},{"id":"30c2f0a3.23d67","type":"inject","z":"d7276cd2.d6f55","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":340,"wires":[["6f55d101.6d98f"]]},{"id":"6f55d101.6d98f","type":"template","z":"d7276cd2.d6f55","name":"","field":"payload","fieldType":"msg","format":"python","syntax":"plain","template":"console.log(\"Hello World\");","output":"str","x":320,"y":340,"wires":[["cdbed88d.d58b98"]]},{"id":"cdbed88d.d58b98","type":"file","z":"d7276cd2.d6f55","name":"","filename":"test.js","appendNewline":false,"createDir":false,"overwriteFile":"true","encoding":"none","x":480,"y":340,"wires":[["de5b2d6d.8b00f8"]]},{"id":"de5b2d6d.8b00f8","type":"exec","z":"d7276cd2.d6f55","command":"node test.js","addpay":false,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"","x":710,"y":340,"wires":[["c7792da8.272e58"],[],[]]},{"id":"c7792da8.272e58","type":"debug","z":"d7276cd2.d6f55","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":970,"y":340,"wires":[]}]