and __call__ methods so that not only True and False but also various other boolean expressions (e.g., 0, 1, and None) are accepted.
Included MediumType's initialization at proper time to avoid Blender's crash.