How to translate a bone with IK in pose mode using the python API
Is there a way to see what commands is the blender UI applying to the
  skeleton so I could just copy the command of whatever I am doing to
  the script to achieve whatever I desire?


Yes, you can run blender with the --debug flags. For example:

./blender --debug-wm


or

./blender --debug-all