[IMP] simplify code, flake8
[IMP] more flake8
[ADD] mark sale_stock as done