Currently, the groud filter is not implemented in pyopensky. I think it is possible that. Please file an issue at the following link. I will take a look at possible solutions.
github.com/junzis/pyopensky/issues
BTW, some ground vehicles do have squawk codes... so we have to approach it differently.