Python read input separated by space