started on python script for formatting dictionary