Good call. Is the "if port is not None:" above usually "if port:" in OS?