Python implementations I made for usefulness