Small, useful pieces of code to make python coding easier