how to create a bill in python