Custom formatted prefix

As I said in #72 this add ability to format the prefix with some items, such as current list name etc.
Same here:
```python
if listname:
```