Check Error Type Python Function Parameters With Types