refactoring of unfinished rachunki.py.