pydusa: add more methods to Medusa, change coding style