use list() for copying lists [py2k compat]

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
take only the basename from splitext

Signed-off-by: Chris Warrick <kwpolska@gmail.com>