Updated kappa unit tests to make sure things are symmetric.
Add more kappa unit tests. Fix some little PEP8 issues. Attempt to prevent run_experiment from crashing before writing summary file.