python core examples