partial python solutions