changing api to check for receipt printer
bulk upgrading code for django 1.5 compatibility
django 1.5 compat