Add missing import for date
Add .can_modify() method on repos, series, pkg_sources and subscriptions
Fix tests