Maybe, you could add default value : 

```
def __init__(self, mod_conf, uri, database, username = '', password = ''):
```