Python translation here.
Please review and approve.
I added example test cases now. Thanks for the remark.
Agree example test case will be appreciate :).
And Coffeescript translation here if you want to review and accept.
And Ruby translation here
And Crystal translate here
Example tests would be nice.