Adding Python ranking stuff