1. Fixed python 3 'reduce' function import error.