the answer to python challenge (use python 3.3, Ecilpse, PyDev)