Using Javascript To Validate User Inputs For Python