coins in python