Usefull small python codes