[python] Fixed `apt` for roles