tidy up python notes