python: modularized dependencies