Implemented Python interface