Merge python3 compatible