[python] add email validation