Python code can detect now when an empty vector has been obtained and therefore new data is resquested.
This only works for the "c" and "C" menu options.