document rappresentation using metaprogramming in python