Hints to Hussein's h/w problems in Python