Parallelized apply (python clone of KSB's xapply)