Get Error Type Python Function Parameters