python wrapper classes based on php design

easier to maintain both version if they are as close as possible, so the
python implementation is fully based on the php one.
given the design most work is done in the DatabaseObject anyway…

currently this forces you to manually convert userdata.inc.php and
tables.inc.php to userdata.py and tables.py as included in this
checkin, though automated conversion is a future goal.