Python 3 compatibility.
Initial value.
Input validation.