movieminer's python implementation