Make the sys.path remove in Python mode customizable (Bug#7454).