Make python3 ready