Updated py file to read form contents