core python complete

need to test