Added warning if submission is empty
Removed useless to_dict() for many tests, refined Python import code