give that a proper python structure