Thanks @skirpichev I'll try to remember to use the labels like that.  Also, regarding the change I suggested. I think it should be 

```
if not gens:
    f = sympify(f)
    if f.is_Number:
        return degree(f, Dummy())
```