Python coding tricks for beginners