Nothing is quite as succinct as shell. The python equivalent to this would probably be at least 10 lines of code.
Edit: The equivalent of above would be:
#!/usr/bin/perl
my $shell=(getpwuid($>))[8];
print "$shell\n";
Though it does have simple syntax for pipes as well.