convert contrib to py3 support