improve init_python