Refactor ex1_3

allow functions to be used by ex2_2
Further refactoring to ex1_3

Mean function which uses introspection to get attribute value of records
Original Pmf.py
fixes to Pmf for py 3.3
Exercise 2.4
project for exercise 2.4