fix refund creation + pep8