initial python binding implementation