Convert Input String To Dictionary Python