conf: make a copy of input dicts
Remove Python 2 support

In order to provide more clear code it was decided to remove this
compatibility layer.