Trim Function In Python Example