keep cpp files when compilation failed

* needed and really usefull for debug
export sliced string to python
Handle case of empty string
Add tests

* Many test from rosetta and for numpy