Fix for writing pickle files in python 3
Updated ComponentAccumulator
configuration tests which dump the configuration to a pickle file.
In python 3 the output file needs to be explicitly opened in binary mode.
I.e.
f = open('configdump.pkl', 'wb')
rather than
f = open('configdump.pkl', 'w')