Added answer and python for 18.
Tweaked perl and added answer and python for 67 (since it's the same solution as 18.)