some pythonesque fancyness