add a check for already initialized python vm