How To Convert Input Into List In Python