the parenthesis are not needed:

```
if tenor is None:
   ...
```