add printheart.py and printheart.rb