python core program