py7 code written; potentially working