fixed placement of sudo command

The sudo was giving root privilidges to curl rather than python (which needed
them). Secondly, the -O option was saving the file to disk rather than passing
it into python on stdin.