Python Codes --- test or serious