some python used in private