This method is a duplicate of the one in luigi/hadoop.py, only need one right?