fix writing bilby result
Closes #163 (closed)
In attempting to fix this issue with some broken imports when converting to a bilby result I made quite a few syntax changes so I could understand what was happening. There is also a lot of redundancy between the core and gw files which I don't think is helping in keeping out bugs (I've also noticed this in other parts of the code). I'm happy to help out with reducing some of this overhead at some point in the future as I think it will make maintaining the whole package easier in the long run.
I couldn't figure out how to actually test the writing the gw result to a bilby result file in the tests, any ideas on how to do that?