Shameless plug: my site Tradewave would be an ideal place to try some of these techniques out. We let you write automated trading algorithms for cryptocurrencies, in the browser, with Python.
Essentially you can't sandbox CPython at the interpreter level, it's too introspective (I do it anyway though, just as a first level of defence). You need sandboxing at the OS level.
https://tradewave.net