minor function clean ups in eos_command
minor function clean ups in eos_command

This commit cleans up a couple of functions and removes the json
import to use the json methods from AnsibleModule

thaim/ansible,thaim/ansible