python: the module is optional, so make the dependency optional too

Authored by palimaka on Mar 28 2018, 10:15 AM.