def translate_codons(sequence):
    '''Return the translated protein from 'sequence' assuming +1 reading frame
       Source - http://adamcoster.com/2011/01/13/python-clean-up-and-translate-nucleotide-sequences/
    '''
    return ''.join([gencode.get(sequence[3*i:3*i+3],'X') for i in range(len(sequence)//3)])