Misc. Python work - Cardiff University