Python Error Handling For User Input Array