fleshing out python backend