Allow importing python's calendar module.

Prevent access to locale-dependent and stdout-writing functions.