|   | 1 |  initial version  | 
This sounds like homework. To find the Taylor command, I suggest that you look at the quick ref at:
http://wiki.sagemath.org/quickref?action=AttachFile&do=view&target=quickref-calc.pdf
You can find a method for extracting the coefficients by looking through:
http://www.sagemath.org/doc/reference/calculus/sage/symbolic/expression.html
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.