Fix runtime issues with python packet filters