Nuggets of random python code