modified the way VERSION is handled. provide Python API