fixed lot of python style issues, added decision and opinion data types, added method to generate test data to test layout