Create factorizationTools.py