a bit of python