added code to output rank with metrics
removing pyc files :/