Remove deprecated apply() builtin.

apply() has been deprecated in Python 2.3 and removed in Python 3. I've noticed this when I try to add Python 3 support to Luigi.