Coding in python for far too long