Python Problems and solutions