Blender 2.73 Objects do not respond to script, but do to Python console TLDR: I can change stuff with Python in the console, but not when lumped together in a script.  What gives?

I'm trying to command an object's location and orientation by running a script in the text editor (and then saving the resulting image).  I can use Python in the embedded console to change object properties (like position and orientation), but when running these commands as a script from the text editor they will change orientation, but not position.  I need to change an object's location and orientation.  What could be causing this?

These objects exist in a .blend file that has objects, lights, textures, keyframes defining position, etc.

These scripts used to work before I updated a texture, added more lights, and restarted my computer a few times.  Those are the only changes I can think of.  Now they render and save the rendered image but don't change the object's location or orientation (yes, after adding more junk, the object call is still to the right object).

However, if I run the script line by line in the embedded Python console, it executes flawlessly.

All thoughts appreciated!  I'm stumped.

Script:

rel_loc = input("\nPlease input relative location of object 1, separated by spaces: x y z:  ")
rel_att = input("Please input relative attitude of object 1, separated by spaces: w x y z: ")

#split out 'words' and convert to floats
rel_loc_p = rel_loc.split()
rel_loc = []

for n in range(0,len(rel_loc_p)):
    rel_loc = rel_loc + [float(rel_loc_p[n])]

rel_att_p = rel_att.split()
rel_att = []

for n in range(0,len(rel_att_p)):
    rel_att = rel_att + [float(rel_att_p[n])]


print("relative location " + str(rel_loc))
print("relative attitude " + str(rel_att))

#set position
bpy.data.objects[1].location = rel_loc

#set attitude
bpy.data.objects[1].rotation_quaternion = rel_att

#location, rotation, and scale
#bpy.data.objects[1].matrix_world.decompose()

file_nname = input("please enter name and extension for file: ")
file_ppath = input("please enter entire save file path, use '/' instead of '\': ")

#render and save image

full_name = file_ppath+file_nname
bpy.context.scene.render.filepath = full_name
bpy.ops.render.render(write_still=True)
All credit to @Chebhou.

From above:

"Anyway, the moral of the story is you can't command things which are defined with keyframes from scripts, but you can with the Python console."