What board are you using? Sounds like this must be a custom build? I didn't realize Espruino was working on any STM32F0 parts yet!
As for that error - could it be the python version? The python 2.7.x and 3.x versions are not entirely code compatible. When there's code that other people claim works, which you try to use and are get errors implying it could never work, that's something you should check. IME, lots of code you download doesn't work in python 3.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What board are you using? Sounds like this must be a custom build? I didn't realize Espruino was working on any STM32F0 parts yet!
As for that error - could it be the python version? The python 2.7.x and 3.x versions are not entirely code compatible. When there's code that other people claim works, which you try to use and are get errors implying it could never work, that's something you should check. IME, lots of code you download doesn't work in python 3.