Now supporting python3.4. Corrected except syntax, for compatibility.