made python compatible