[task] Add a Thread class to make it can start by thread and add a python plugin to make it can test plugin easily