Add workaround for python3 bug on initial build