html parts to pyhtml with generic functions