Fixed a Python 3 incompatibility in the Android toolchain.