sim_time: create shared library

Some refactoring is implemented in this commit.
sim_time: refactor pointers writting
multi_test.py: call sim_type from python