random pieces of python code