support simple functions with simple function attributes; TODO: support any mix of fun/class
python3 compat