Added core file: ustats.py

This file will be used to provide the core functionality of ustats.