Cleaned up commands.py

Removed essentials plugin functions
Renamed functions to be pythonic