Added output file location selection (currently requires .html extension) to function.py