fix(api/python): make sure Z3 compiles using Python3

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>