Update profiler.py

Removed exceptions for paths with spaces as they seem to pass through all right