py: #if guard qstrs that are optional.

Also disable gc module on bare-arm port.