Practise repository for Python class