some code wiritten by python