i need a python script that outputs rust code to implement bubble sorting for a number array