Fix for writing pickle files in python3
Updated ComponentAccumulator
configuration tests which dump the configuration
to a pickle file. In python3 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')
Previous fix was accidentally reverted in !28764 (merged).