port to python3.4

Small modifications to be able to use sliver with Python3.4
Tested on django 1.6