Not exactly sure what troubles you are having. Here is a good article - http://aws.amazon.com/articles/2294
Your specific question, you want to create a mapper which takes in your file as input and splits each line into a key, value pair (key determining which output file it will be in), and your reducer will just have to output these, a no-op.
Mapper
#!/usr/bin/python
def main():
for line in sys.stdin:
key = get_my_key(line)
value = line
print '{}\t{}'.format(key, value)
if __name__ == "__main__":
main()
Reducer
#!/usr/bin/python
def main():
for line in sys.stdin:
print line
if __name__ == "__main__":
main()
When you are adding this step you specify your input, output (some s3 bucket) and these files as the mapper and reducer.
Note, there are configurations to set no reducer, just a mapper task. I've included it all above because you seem to be a beginner