working on python implementation for ABC