Working instantiation of Python classes