Javascript Dynamically Create Class In Python Definition