Python tricks and tips